Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVRO-4046: [PHP] Handling of default values #3127

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

MichelHartmann
Copy link
Contributor

What is the purpose of the change

This pull request fixes the behavior that values are accidentially overwritten by default values from the reader's schema.
Detailed description: AVRO-4046

Verifying this change

This change added tests and can be verified as follows:

  • Added test that serializes some data and ensures that the data survives deserialization.

Documentation

  • Does this pull request introduce a new feature? no
  • If yes, how is the feature documented? not applicable

Issues: AVRO-4046

Only use default values from reader's schema for fields that are not defined in the writer's schema
@github-actions github-actions bot added the PHP label Aug 30, 2024
@MichelHartmann
Copy link
Contributor Author

@Fokko can you take a look at this?

@martin-g martin-g merged commit 2d10b31 into apache:main Sep 12, 2024
9 checks passed
@martin-g
Copy link
Member

Thank you, @MichelHartmann !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants